package com.endava.nio_io.exercises;

/**
 * Basic implementation of a Circle class
 * 
 * @author adumitrescu
 * 
 */
public class Circle extends Shape {
	/**
	 * uses a default serialversionUID
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * uses a radius parameter
	 */
	private double radius;

	/**
	 * generated getter for the private field radius
	 * 
	 * @return radius
	 */
	public double getRadius() {
		return radius;
	}

	/**
	 * set's radius value
	 * 
	 * @param radius
	 */
	public void setRadius(double radius) {
		this.radius = radius;
	}

	/**
	 * constructor for class Circle
	 * 
	 * @param radius
	 */
	public Circle(double radius) {
		setRadius(radius);
	}

}
